﻿using RStudio.Command;
using System;


/// <summary>
/// 命令 | 列出所有命令
/// </summary>
public class CommandListCommand : ICommand
{
    public string Name  => "ListCommand";
    public string Description => "列出所有可用命令";
    public CommandPermission RequiredPermission => CommandPermission.Normal;
    public string[] ParamArray { get; } = Array.Empty<string>();
    public string Usage => string.Empty;



    public bool CanExecute(string[] args)
    {
        return this.ParamArray.Length == args.Length;
    }

    public bool Execute(string[] args)
    {
        bool isVaild = CanExecute(args);

        if (isVaild)
        { 
            
        }

        return true;
    }
}